/**
 * BaseSearchBean.java
 * Product:BaseLayer
 * Version:1.0
 * Copyright 2009 by DNE
 * All Rights Reserved.
 */
package com.site.util.base.businessbean;

import java.io.Serializable;
import java.util.Date;

/**
 * 所有业务Bean都必需继承此类
 */
public class BaseBusinessBean implements Serializable {

	/**
	 * 所有的vo都需要继续此类，主要作用：
	 * 1.可以通过此类存储查询条件查询数据
	 * 2.做为值对象存放页面显示数据
	 */
	private static final long serialVersionUID = -463569604578277978L;
	
	//创建日期
	protected Date createdDate;
	
	//更新日期
	protected Date modifiedDate;
	//创建人
	protected String createdUser;
	
	//更新人
	protected String updatedUser;
	
	//版本号
	protected Integer version = 0;
	/*
	 * 返回错误结果数据 
	 */
	private String errorResult;
	// 分页 start
	private int pageSize = 10;// 每页记录数

	private int pageCount;// 总页数

	private int recordCount;// 总记录数

	private int targetPage;// 目标页
	// 分页 end

	protected String markDelete = "N";
	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getModifiedDate() {
		return modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}

	public String getCreatedUser() {
		return createdUser;
	}

	public void setCreatedUser(String createdUser) {
		this.createdUser = createdUser;
	}

	public String getUpdatedUser() {
		return updatedUser;
	}

	public void setUpdatedUser(String updatedUser) {
		this.updatedUser = updatedUser;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public void setMarkDelete(String markDelete) {
		this.markDelete = markDelete;
	}

	public String getMarkDelete() {
		return markDelete;
	}
	public String getErrorResult() {
		return errorResult;
	}
	public void setErrorResult(String errorResult) {
		this.errorResult = errorResult;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public int getRecordCount() {
		return recordCount;
	}

	public void setRecordCount(int recordCount) {
		this.recordCount = recordCount;
	}

	public int getTargetPage() {
		return targetPage;
	}

	public void setTargetPage(int targetPage) {
		this.targetPage = targetPage;
	}
}
